import { get } from '@/utils/request'


const state={
  categorys:{},
}

const actions={
  async findCategorys(context,list){
    let res = await get('/category/findAll')
    context.commit("SET_CATEGORYS",res)
  }
}

const mutations={
  SET_CATEGORYS(state,res){
    state.categorys=res
  }
}

const getters={}

export default{
  namespaced:true,
  state,
  actions,
  mutations,
  getters
}
